<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function method01(){
            var var_01=1;  //局部变量
            var_02=2;   //全局变量
        }
        method01();
        //console.log(var_01)
        console.log(var_02)
    </script>
</head>
<body>

</body>
</html>